//模块饼图
function getModulePieXml(val) {
	var date_arr =val.split("至");
	var chart = new FusionCharts("../chart/Pie2D.swf", "pieId", "760",
			"280", "0", "0");
	jQuery.ajax({
		type : "post",
		url : "../module/modulepiexml?fromDate=" + date_arr[0]+"&toDate="+date_arr[1],
		success : function(msg) {
			chart.setDataXML(msg);
			chart.addParam("wmode", "transparent");
			chart.render("chartdiv");
		}
	});
}
//模块柱状图
function getModuleXml(type)
{
	var fromDate = $('#fromDate').val();
	var toDate = $('#toDate').val();
	var moduleName = $('#moduleName').val();
	var chart = new FusionCharts("../chart/Column2D.swf", "ChartId", "830",
			"300", "0", "0");
	jQuery.ajax({
		type : "post",
		url : "../module/modulehistoryxml?value=" + type+"&fromDate="+fromDate+"&toDate="+toDate+"&moduleName="+moduleName,
		success : function(msg) {
			chart.setDataXML(msg);
			chart.addParam("wmode", "transparent");
			chart.render("chartdiv");
		}
	});
}